package cup.com.icss.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SynMessageIssueExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SynMessageIssueExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIssueIdIsNull() {
            addCriterion("ISSUE_ID is null");
            return (Criteria) this;
        }

        public Criteria andIssueIdIsNotNull() {
            addCriterion("ISSUE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andIssueIdEqualTo(String value) {
            addCriterion("ISSUE_ID =", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdNotEqualTo(String value) {
            addCriterion("ISSUE_ID <>", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdGreaterThan(String value) {
            addCriterion("ISSUE_ID >", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdGreaterThanOrEqualTo(String value) {
            addCriterion("ISSUE_ID >=", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdLessThan(String value) {
            addCriterion("ISSUE_ID <", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdLessThanOrEqualTo(String value) {
            addCriterion("ISSUE_ID <=", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdLike(String value) {
            addCriterion("ISSUE_ID like", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdNotLike(String value) {
            addCriterion("ISSUE_ID not like", value, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdIn(List<String> values) {
            addCriterion("ISSUE_ID in", values, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdNotIn(List<String> values) {
            addCriterion("ISSUE_ID not in", values, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdBetween(String value1, String value2) {
            addCriterion("ISSUE_ID between", value1, value2, "issueId");
            return (Criteria) this;
        }

        public Criteria andIssueIdNotBetween(String value1, String value2) {
            addCriterion("ISSUE_ID not between", value1, value2, "issueId");
            return (Criteria) this;
        }

        public Criteria andStudentIdIsNull() {
            addCriterion("STUDENT_ID is null");
            return (Criteria) this;
        }

        public Criteria andStudentIdIsNotNull() {
            addCriterion("STUDENT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStudentIdEqualTo(String value) {
            addCriterion("STUDENT_ID =", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotEqualTo(String value) {
            addCriterion("STUDENT_ID <>", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdGreaterThan(String value) {
            addCriterion("STUDENT_ID >", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdGreaterThanOrEqualTo(String value) {
            addCriterion("STUDENT_ID >=", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLessThan(String value) {
            addCriterion("STUDENT_ID <", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLessThanOrEqualTo(String value) {
            addCriterion("STUDENT_ID <=", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLike(String value) {
            addCriterion("STUDENT_ID like", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotLike(String value) {
            addCriterion("STUDENT_ID not like", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdIn(List<String> values) {
            addCriterion("STUDENT_ID in", values, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotIn(List<String> values) {
            addCriterion("STUDENT_ID not in", values, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdBetween(String value1, String value2) {
            addCriterion("STUDENT_ID between", value1, value2, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotBetween(String value1, String value2) {
            addCriterion("STUDENT_ID not between", value1, value2, "studentId");
            return (Criteria) this;
        }

        public Criteria andCollegeNameIsNull() {
            addCriterion("COLLEGE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andCollegeNameIsNotNull() {
            addCriterion("COLLEGE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andCollegeNameEqualTo(String value) {
            addCriterion("COLLEGE_NAME =", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameNotEqualTo(String value) {
            addCriterion("COLLEGE_NAME <>", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameGreaterThan(String value) {
            addCriterion("COLLEGE_NAME >", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameGreaterThanOrEqualTo(String value) {
            addCriterion("COLLEGE_NAME >=", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameLessThan(String value) {
            addCriterion("COLLEGE_NAME <", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameLessThanOrEqualTo(String value) {
            addCriterion("COLLEGE_NAME <=", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameLike(String value) {
            addCriterion("COLLEGE_NAME like", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameNotLike(String value) {
            addCriterion("COLLEGE_NAME not like", value, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameIn(List<String> values) {
            addCriterion("COLLEGE_NAME in", values, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameNotIn(List<String> values) {
            addCriterion("COLLEGE_NAME not in", values, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameBetween(String value1, String value2) {
            addCriterion("COLLEGE_NAME between", value1, value2, "collegeName");
            return (Criteria) this;
        }

        public Criteria andCollegeNameNotBetween(String value1, String value2) {
            addCriterion("COLLEGE_NAME not between", value1, value2, "collegeName");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("TITLE is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("TITLE is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("TITLE =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("TITLE <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("TITLE >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("TITLE >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("TITLE <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("TITLE <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("TITLE like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("TITLE not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("TITLE in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("TITLE not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("TITLE between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("TITLE not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andCerateTimeIsNull() {
            addCriterion("CERATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCerateTimeIsNotNull() {
            addCriterion("CERATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCerateTimeEqualTo(Date value) {
            addCriterion("CERATE_TIME =", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeNotEqualTo(Date value) {
            addCriterion("CERATE_TIME <>", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeGreaterThan(Date value) {
            addCriterion("CERATE_TIME >", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CERATE_TIME >=", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeLessThan(Date value) {
            addCriterion("CERATE_TIME <", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CERATE_TIME <=", value, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeIn(List<Date> values) {
            addCriterion("CERATE_TIME in", values, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeNotIn(List<Date> values) {
            addCriterion("CERATE_TIME not in", values, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeBetween(Date value1, Date value2) {
            addCriterion("CERATE_TIME between", value1, value2, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andCerateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CERATE_TIME not between", value1, value2, "cerateTime");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIsNull() {
            addCriterion("ISSUE_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIsNotNull() {
            addCriterion("ISSUE_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andIssueTypeEqualTo(String value) {
            addCriterion("ISSUE_TYPE =", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotEqualTo(String value) {
            addCriterion("ISSUE_TYPE <>", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeGreaterThan(String value) {
            addCriterion("ISSUE_TYPE >", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeGreaterThanOrEqualTo(String value) {
            addCriterion("ISSUE_TYPE >=", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLessThan(String value) {
            addCriterion("ISSUE_TYPE <", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLessThanOrEqualTo(String value) {
            addCriterion("ISSUE_TYPE <=", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeLike(String value) {
            addCriterion("ISSUE_TYPE like", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotLike(String value) {
            addCriterion("ISSUE_TYPE not like", value, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeIn(List<String> values) {
            addCriterion("ISSUE_TYPE in", values, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotIn(List<String> values) {
            addCriterion("ISSUE_TYPE not in", values, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeBetween(String value1, String value2) {
            addCriterion("ISSUE_TYPE between", value1, value2, "issueType");
            return (Criteria) this;
        }

        public Criteria andIssueTypeNotBetween(String value1, String value2) {
            addCriterion("ISSUE_TYPE not between", value1, value2, "issueType");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdIsNull() {
            addCriterion("THE_SENDER_ID is null");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdIsNotNull() {
            addCriterion("THE_SENDER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdEqualTo(String value) {
            addCriterion("THE_SENDER_ID =", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdNotEqualTo(String value) {
            addCriterion("THE_SENDER_ID <>", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdGreaterThan(String value) {
            addCriterion("THE_SENDER_ID >", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdGreaterThanOrEqualTo(String value) {
            addCriterion("THE_SENDER_ID >=", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdLessThan(String value) {
            addCriterion("THE_SENDER_ID <", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdLessThanOrEqualTo(String value) {
            addCriterion("THE_SENDER_ID <=", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdLike(String value) {
            addCriterion("THE_SENDER_ID like", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdNotLike(String value) {
            addCriterion("THE_SENDER_ID not like", value, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdIn(List<String> values) {
            addCriterion("THE_SENDER_ID in", values, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdNotIn(List<String> values) {
            addCriterion("THE_SENDER_ID not in", values, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdBetween(String value1, String value2) {
            addCriterion("THE_SENDER_ID between", value1, value2, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderIdNotBetween(String value1, String value2) {
            addCriterion("THE_SENDER_ID not between", value1, value2, "theSenderId");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameIsNull() {
            addCriterion("THE_SENDER_NAME is null");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameIsNotNull() {
            addCriterion("THE_SENDER_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameEqualTo(String value) {
            addCriterion("THE_SENDER_NAME =", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameNotEqualTo(String value) {
            addCriterion("THE_SENDER_NAME <>", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameGreaterThan(String value) {
            addCriterion("THE_SENDER_NAME >", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameGreaterThanOrEqualTo(String value) {
            addCriterion("THE_SENDER_NAME >=", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameLessThan(String value) {
            addCriterion("THE_SENDER_NAME <", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameLessThanOrEqualTo(String value) {
            addCriterion("THE_SENDER_NAME <=", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameLike(String value) {
            addCriterion("THE_SENDER_NAME like", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameNotLike(String value) {
            addCriterion("THE_SENDER_NAME not like", value, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameIn(List<String> values) {
            addCriterion("THE_SENDER_NAME in", values, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameNotIn(List<String> values) {
            addCriterion("THE_SENDER_NAME not in", values, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameBetween(String value1, String value2) {
            addCriterion("THE_SENDER_NAME between", value1, value2, "theSenderName");
            return (Criteria) this;
        }

        public Criteria andTheSenderNameNotBetween(String value1, String value2) {
            addCriterion("THE_SENDER_NAME not between", value1, value2, "theSenderName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}